package com.wanxi.controller;

import com.wanxi.dto.ResultDto;
import com.wanxi.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Li
 * @Date 2023/7/27 18:32
 */
@RestController
@RequestMapping("/back/logout")
public class LoginOutController {
    @Autowired
    private UserService userService;
    @PostMapping("/loginOut")
    public ResultDto loginOut(){
       return userService.loginOut();
    }
}
